package org.example.k8s_cloudplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "podrequest")
public class PodRequest {
    @TableId(value = "id", type = IdType.AUTO) // 自动生成
    private Integer ID;
    @TableField(value = "userid")
    private Integer userID;
    @TableField(value = "podname")
    private String podName;
    private Integer cpu;
    private Integer memory;
    @TableField(value = "image_os")
    private String imageOS;
    @TableField(value = "image_version")
    private String imageVersion;
    @TableField(value = "applytime")
    private Integer applyTime;//以天为单位
    private Integer status;//0:申请中 1:已通过 2:已拒绝
    private String reason;
    private Integer type;//0:申请 1:续租
    @TableField(value = "dockerid")
    private Integer dockerID;//续租申请必须有这个字段
}
